{% extends "base_site" %}


{% block coltype %}colSM{% endblock %}



{% block breadcrumbs %}<div class="breadcrumbs"><a href="/">Accueil</a> &rsaquo; <a href="/doc/">Documentation</a> &rsaquo; filtres</div>{% endblock %}


{% block title %}Filtres{% endblock %}

{% block content %}

<h1>Documentation concernant les filtres</h1>

<div id="content-main">
{% regroup filters|dictsort:"library" by library as filter_libraries %}
{% for library in filter_libraries %}
<div class="module">
    <h2>{% if library.grouper %}{{ library.grouper }}{% else %}Filtres intégrés{% endif %}</h2>
    {% if library.grouper %}<p class="small quiet">Pour utiliser ces filtres dans vos modèles, ajoutez la ligne <code>{% templatetag openblock %} load {{ library.grouper }} {% templatetag closeblock %}</code> avant de les utiliser.</p><hr>{% endif %}
    {% for filter in library.list|dictsort:"name" %}
    <h3 id="{{ filter.name }}">{{ filter.name }}</h3>
    <p>{{ filter.title }}</p>
    <p><strong>Usage :</strong> <code>{% templatetag openvariable %} variable|{{ filter.name }}{% if filter.meta.AcceptsArgument %}:"arg"{% endif %} {% templatetag closevariable %}</code></p>
    <p>{{ filter.body }}</p>
    {% if not forloop.last %}<hr />{% endif %}
    {% endfor %}
</div>
{% endfor %}
</div>

{% endblock %}

{% block sidebar %}

<div id="content-related">

{% regroup filters|dictsort:"library" by library as filter_libraries %}
{% for library in filter_libraries %}
<div class="module">
    <h2>{% if library.grouper %}{{ library.grouper }}{% else %}Filtres intégrés{% endif %}</h2>
    <ul>
    {% for filter in library.list|dictsort:"name" %}
        <li><a href="#{{ filter.name }}">{{ filter.name }}</a></li>
    {% endfor %}
    </ul>
</div>
{% endfor %}

</div>

{% endblock %}
